﻿<controls:ChildWindow x:Class="MySemanticSearch.ConfigureInstancePage"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           mc:Ignorable="d" d:DesignHeight="135" d:DesignWidth="285" Title="Configure SQL Server Instance" IsEnabled="{Binding IsPageEnabled}">

    <Grid Name="MainGrid" HorizontalAlignment="Left" Width="268" Height="100" VerticalAlignment="Top" Background="White">
        <Border BorderBrush="Black" BorderThickness="1" Height="100" VerticalAlignment="Top" HorizontalAlignment="Left" Width="267" />
        <Grid Margin="5" HorizontalAlignment="Left" Width="257" Height="90" VerticalAlignment="Top">
            <Rectangle Margin="3" Height="84" Style="{StaticResource ResourceKey=BackgroundRectangle}" Fill="{StaticResource ResourceKey=RectangleLinearGradientBrush}" Width="250" />
            <TextBox Name="InstanceNameTextBox" ToolTipService.ToolTip="Filter documents by name." Text="{Binding SqlInstanceName, Mode=TwoWay}" Style="{StaticResource SearchTextBoxTemplate}" VerticalAlignment="Top" Margin="10,26,0,0" HorizontalAlignment="Left" Width="237" TabIndex="1" />
            <Button Content="Add" Style="{StaticResource MainButtonStyle}" HorizontalAlignment="Left" Width="237" Height="26" VerticalAlignment="Top" Command="{Binding AddSqlInstanceCommand}" Margin="10,56,0,0" TabIndex="2" />
            <sdk:Label FontWeight="Normal" Style="{StaticResource ResourceKey=StatusLabel}" VerticalAlignment="Top" Margin="10,7,0,0" Content="Instance Name" Width="88" Foreground="#FF083C63" d:LayoutOverrides="HorizontalAlignment" Height="16" />
            <sdk:Label HorizontalAlignment="Right" Content="{Binding ConnectionStatus}" FontWeight="Normal" Foreground="#FFCC3208" Height="16" Margin="0,7,12,0" Style="{StaticResource StatusLabel}" VerticalAlignment="Top" Width="143" />
        </Grid>
    </Grid>
</controls:ChildWindow>
